﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentation/master.Master" AutoEventWireup="true" CodeBehind="ViewAdjVoucherUI.aspx.cs" Inherits="Staionery_Inventory.Presentation.StockCard.ViewAdjVoucherUI__Reload_" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <%-- SearchGroup --%>
        <div class="form-group">
            <%-- lbl --%>
            <label class="control-label col-sm-2">Voucher No </label>
            <%-- txt --%>
            <div class="col-sm-3" onkeypress="return keypress(event)">
                <asp:TextBox ID="txtAdjustID" runat="server" class="form-control" placeholder="Enter Voucher No" onclick="clearValidation()"></asp:TextBox>
            </div>
            <%-- btn --%>
            <div class="col-sm-2">
                <asp:Button ID="btnSearch" runat="server" Text="Search"  
                    class="btn btn-primary" onclick="btnSearch_Click"/>
            </div>
        </div>

        <%-- Title--%>
        <div class="form-group">
            <div class="col-sm-"></div>
            <label class="col-sm-8" style="font-size:xx-large">Inventory Adjustment Voucher</label>
        </div>

        <%-- LabelGroup --%>
        <div class="form-group">
            <%-- lbl --%>
            <label class="control-label col-sm-2" id="lblForAdjustID" runat="server">Voucher No </label>
            <%-- lbl --%>
            <asp:Label ID="lblAdjustID" runat="server" Text="" class="control-label col-sm-3"></asp:Label>
        </div>
        <div class="form-group">
            <%-- lbl --%>
            <label class="control-label col-sm-2" id="lblForDateAdj" runat="server">Date of Issue </label>
            <%-- lbl --%>
            <asp:Label ID="lblDateAdj" runat="server" Text="" class="control-label col-sm-3"></asp:Label>
        </div>

        <%-- GridView--%>
        <asp:GridView ID="gvAdjVoucher" runat="server" AutoGenerateColumns="False" CssClass="col-sm-12 table table-striped table-bordered table-hover">
            <Columns>
                <asp:BoundField DataField="ItemID" HeaderText="Item Code" />
                <asp:BoundField DataField="QtyAdj" HeaderText="Quantity Adjusted" />
                <asp:BoundField DataField="Reason" HeaderText="Reason" />
            </Columns>
        </asp:GridView>

        <%-- message label --%>
        <div class="form-group">
            <asp:Label ID="lblMessage" runat="server" Text="" class="control-label col-sm-8"></asp:Label>
        </div>



    <script type="text/javascript">
        function clearValidation() {
            document.getElementById('<%=lblMessage.ClientID %>').innerHTML = '';
        }
    </script>

</asp:Content>
